Skip to content

Retype all order elements to xsd:positiveInteger and fix the associated examples#477

Closed
skinkie wants to merge 25 commits intomasterfrom
fix_order_positive_integer
Closed

Retype all order elements to xsd:positiveInteger and fix the associated examples#477
skinkie wants to merge 25 commits intomasterfrom
fix_order_positive_integer

Conversation

@skinkie
Copy link
Contributor

@skinkie skinkie commented Jul 28, 2023

This is a breaking change (with respect to the documentation) which mixes xsd:positiveInteger with xsd:integer.

The main difference is: positiveInteger starts at 1.

Please carefully consider the changes that have a mention on "Relative order". No examples exists with a negative relative order, but the design might allow them?

Fix #475

(apply after the required Id pull request)

skinkie and others added 22 commits July 26, 2023 19:52
something went massively wrong...
…ed examples

This is a breaking change (with respect to the documentation) which mixes xsd:positiveInteger with xsd:integer.

The main difference is: positiveInteger starts at 1.

Please carefully consider the changes that have a mention on "Relative order". No examples exists with a negative relative order, but the design might allow them?

Fix #475
@skinkie skinkie self-assigned this Jul 28, 2023
@skinkie skinkie added bug Technical mistake, inconsistency with the documentation, etc. needs documentation update The NeTEx document needs to be updated labels Jul 28, 2023
@trurlurl
Copy link
Collaborator

@skinkie No, I cannot be sure about negative order numbers, I'm not sufficiently familiar with the structures in question.

@ue71603
Copy link
Contributor

ue71603 commented Aug 1, 2023

I think we moved the elevator order into an element. So it means that order is arbitrary. And from N to Q everything can be ordered the same way ;-)

@Aurige
Copy link
Contributor

Aurige commented Sep 7, 2023

I agree that we need to harmonise order's type ...
I don't think that negative if the bigger risk (but you never know, you may face people populating order with a lift level), but I'm concerned about 0: you can be sure that a lot of existing data set are already using order=0 when it is defined as an integer... so this means breaking a lot of currently valid data sets.
Why not harmonising the way around (make all orders Integers) ? there is no stake here, except than being able to sort based on the order (we don't care if it is 0 or negative)

@skinkie
Copy link
Contributor Author

skinkie commented Sep 7, 2023

Show me the breaking data.

@Aurige
Copy link
Contributor

Aurige commented Sep 7, 2023

Show me the breaking data.

The examples you had to correct ?

@skinkie
Copy link
Contributor Author

skinkie commented Sep 7, 2023

The examples you had to correct ?

The PassengerStopAssignment order should always have started at 1?

@Aurige
Copy link
Contributor

Aurige commented Sep 28, 2023

Will be discussed in meeting #14 (October 4th)

@ue71603
Copy link
Contributor

ue71603 commented Sep 28, 2023

Will be discussed in meeting #14 (October 4th)

Does this mean you are ok with it?

@Aurige
Copy link
Contributor

Aurige commented Sep 28, 2023

Will be discussed in meeting #14 (October 4th)

Does this mean you are ok with it?

My mind is not fully made up about it (not against, but don't like its drawbacks)... and anyway whatever I prefer, we need the group validation to accept the drawbacks

@Joostb61
Copy link

The RelativeOrder element should remain integer.
The EPIAP documentation recommends to use RelativeOrder '0' for the groundfloor. That's not possible if it is a positveinteger. However it is possible to renumber the RelativeOrder, this is not desirable since it means all levels get a new RelativeOrdernumber if a new underground floor is added.

@ue71603
Copy link
Contributor

ue71603 commented Oct 20, 2023

@Joostb61 RelativeLevelOrder is not affected. Only the order attributes are concerned.

@ue71603
Copy link
Contributor

ue71603 commented Nov 21, 2023

@Aurige go or no go from group?

@Aurige
Copy link
Contributor

Aurige commented Nov 21, 2023

The group decision was : The PR is accepted but needs to be separated from the IdType fix on which it is stacked
Note: may generate some backward compatibility issues

@ue71603 ue71603 added this to the netex_1.2 milestone Dec 1, 2023
@ue71603
Copy link
Contributor

ue71603 commented Dec 6, 2023

@skinkie who will remove the IdType part? Should I rebase it?. Otherwise it was accepted by enough reviewers. Or do you want explicitly have acceptance by @Aurige

@skinkie
Copy link
Contributor Author

skinkie commented Dec 6, 2023

If you only go for the changing or order element, I would cherry pick the specific commits.

@ue71603 ue71603 assigned ue71603 and unassigned skinkie Jan 17, 2024
@ue71603
Copy link
Contributor

ue71603 commented Jan 24, 2024

use the last four or so comments. and redo...

@Aurige
Copy link
Contributor

Aurige commented Feb 7, 2024

How to express that order (mandatory) is not useful in some cases ? Make it non mandatory ? use value "1" for all orders ?
Value 1 is the group's preferred choice ... to be described in the document/anotation (only when the order is meaningless)

@ue71603
Copy link
Contributor

ue71603 commented Feb 7, 2024

replaces with #657

@ue71603 ue71603 closed this Feb 7, 2024
@trurlurl
Copy link
Collaborator

Removing "documentation update needed" since closed without merging.

@trurlurl trurlurl removed the needs documentation update The NeTEx document needs to be updated label Jun 21, 2024
@skinkie skinkie deleted the fix_order_positive_integer branch November 19, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Technical mistake, inconsistency with the documentation, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate order attribute xsd:integer vs xsd:positiveInteger

5 participants